package com.sudo.sso.server;

import cn.dev33.satoken.sso.SaSsoManager;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 单点登录服务
 *
 * @author DayDayUp
 * @datetime 2023-10-14 17:28
 **/
@Slf4j
@SpringBootApplication
@MapperScan("com.sudo.sso.server.mapper")
public class SsoServerApplication {
    public static void main(String[] args) {
        SpringApplication springApp = new SpringApplication(SsoServerApplication.class);
        springApp.setAdditionalProfiles("starter");
        springApp.run(args);
        log.info("---------------------- Sa-Token SSO 统一认证中心启动成功 ----------------------");
        log.info("配置信息：{}", SaSsoManager.getServerConfig());
    }
}
